package com.example.manpower.Entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName department
 */
@TableName(value ="department")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department extends PageObj implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer departmentId;
    private String departmentName;
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}